import React from 'react';
import Taro from '@tarojs/taro';
import { View, Text, Button } from '@tarojs/components';
import './index.less'; // 引入样式文件

function SuccessPage() {
  return (
    <View className="success-page">
      <View className="success-icon">
        {/* 可以使用自定义的图标或图片来表示成功状态 */}
        <Text className="icon-check">✓</Text>
      </View>
      <View className="success-message">
        <view className="success">提交成功</view>
        <view className="description">您的信息已成功提交,等待审核,后续会短信通知你</view>
      </View>
      <Button className="go-home-button" size='mini' onClick={() => Taro.switchTab({ url: '/pages/home/index' })}>
        确定
      </Button>
    </View>
  );
}

export default SuccessPage;